package net.sahv.bdyz.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.sahv.bdyz.mapper.HelpCenterMapper;
import net.sahv.bdyz.model.HelpCenter;

@Service
public class HelpCenterService {

	@Autowired
	private HelpCenterMapper helpCenterMapper;
	
	public int insert(HelpCenter record){
		return helpCenterMapper.insert(record);
	}
	
	public List<HelpCenter> selectAll(){
		return helpCenterMapper.selectAll();
	}
	
	public int updateByPrimaryKey(HelpCenter record){
		return helpCenterMapper.updateByPrimaryKey(record);
	}
	
	public HelpCenter selectDetails(@Param("hType")Integer hType){
		return helpCenterMapper.selectDetails(hType);
	}
}
